package com.stud.common.constant;

/**
 * 缓存的key 常量
 *
 * @author Stud
 */
public class CacheConstants {

    /**
     * 流水号 redis key
     */
    public static final String SERIAL_NO = "serial_no:";

    /**
     * 设备断电告警 redis key
     */
    public static final String DEVICE_ALERT_PW001 = "t_device_alert_pw001";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 登录用户 redis key
     */
    public static final String LED_PUSH_USER_TOKEN = "led_push_user_token:";

    /**
     * 登录用户名 找 redis key
     */
    public static final String USERNAME_2_USERKEY = "username_2_userkey:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码 redis key
     */
    public static final String MESSAGE_CODE_KEY = "message_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    /**
     * 操作token的锁
     */
    public static final String TOKEN_LOCK_KEY = "token_lock_key:";

    /**
     * 绕行车辆数据前缀
     */
    public static final String DETOUR_KEY = "detour_key:";


    public static final String P2_DEVICE = "t_device:";

    /**
     * 车冲AI识别结果前缀 car_wash
     */
    public static final String CAR_WASH_AI_RESULT = "car_wash_ai_result";

    /**
     * 开启闸机命令前缀 car_wash
     */
    public static final String GATE_ORDER_AUTO = "GATE_ORDER_AUTO:";

    /**
     * 手动开启闸机命令前缀 car_wash
     */
    public static final String GATE_ORDER_CONTROL = "GATE_ORDER_CONTROL:";
}
